package com.cailu.receiver;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author cailu
 * @filename MyServiceMQReceiverApplication
 * @description RabbitMQ接受者 启动类
 */
@SpringBootApplication
public class MyReceiverApplication implements CommandLineRunner {

	/**
	 * 日志
	 */
	private Logger logger = (Logger) LoggerFactory.getLogger(this.getClass());

	/**
	 * 功能描述  启动项
	 * @param args args
	 * @author cailu
	 */
	public static void main(String[] args) {
		SpringApplication.run(MyReceiverApplication.class, args);
	}

	@Override
	public void run(String... args) throws Exception {
		logger.info("== rabbitmq-receiver-depend 服务启动成功！==");
	}
}
